<?php
require_once ('./config.php');
$gid = $_REQUEST['gid'];

$sql = "SELECT *FROM goodsinfo WHERE gid=$gid";
$result = mysqli_query($conn,$sql);
$arr = mysqli_fetch_assoc($result);
echo json_encode(array(
    'code' => 1,
    'data' => $arr
));